﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Brettle.Web.NeatUpload.ProgressPage" %>
 <%@ Register TagPrefix="Upload" Namespace="Brettle.Web.NeatUpload" Assembly="Brettle.Web.NeatUpload" %>
<html>
<head >
    <title>Untitled Page</title>
    <link rel="stylesheet" type="text/css" title="default" href="../Admin/Images/default.css" />
    <style type="text/css">
<!--
		body, form, table, tr, td {
			margin: 0px;
			border: 0px none;
			padding: 0px;
		}

		#progressDisplayCenterer {			
			width: 100%;
			height: 100%;
		}
		
		#progressDisplay {			
			width: 100%;
		}
		
		#barTd {
			width: 100%;
		}
		
		#statusDiv {
			border-width: 1px;
			border-style: solid;
			padding: 0px;
			position: relative;
			width: 100%;
			text-align: center;
			z-index: 1; 
		}
		
		#barDiv,#barDetailsDiv {
			border: 0px none ; 
			margin: 0px; 
			padding: 0px; 
			position: absolute; 
			top: 0pt; 
			left: 0pt; 
			z-index: -1; 
			height: 100%;
			width: 75%;
		}
-->
		</style>
</head>
<body bgcolor="#f0f3f7">
    <form id="form1" runat="server">
    <div>   
    <table id="progressDisplayCenterer">
        <tr>
            <td>
                <table id="progressDisplay" class="ProgressDisplay">
                    <tr>
                        <td id="barTd">
                            <div id="statusDiv" runat="server" class="StatusMessage">
                                &#160;
                                <Upload:DetailsDiv ID="barDetailsDiv" runat="server" UseHtml4="true" Width='<%# Unit.Percentage(Math.Floor(100*FractionComplete)) %>'
                                    class="ProgressBar">
                                </Upload:DetailsDiv>
                            </div>
                        </td>
                        <td>
                            &#160;<asp:HyperLink ID="cancel" runat="server" Visible='<%# CancelVisible %>' NavigateUrl='<%# CancelUrl %>'
                                title="Cancel Upload" class="ImageButton">
                                <img id="cancelImage" runat="server" src="/Modules/Framework.Module.UpDownLoad/Admin/Images/cancel.png" alt="Cancel Upload" /></asp:HyperLink>
                            <asp:HyperLink ID="refresh" runat="server" Visible='<%# StartRefreshVisible %>' NavigateUrl='<%# StartRefreshUrl %>'
                                title="Refresh" class="ImageButton">
                                <img id="refreshImage" runat="server" src="/Modules/Framework.Module.UpDownLoad/Admin/Images/refresh.png" alt="Refresh" /></asp:HyperLink>
                            <asp:HyperLink ID="stopRefresh" runat="server" Visible='<%# StopRefreshVisible %>'
                                NavigateUrl='<%# StopRefreshUrl %>' title="Stop Refreshing" class="ImageButton">
                                <img id="stopRefreshImage" runat="server" src="/Modules/Framework.Module.UpDownLoad/Admin/Images/stop_refresh.png" alt="Stop Refreshing" /></asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <Upload:DetailsSpan ID="normalInProgress" runat="server" WhenStatus="NormalInProgress"
                                Style="font-weight: normal; white-space: nowrap;">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblByteRead" runat="server" Text="Tiến trình"></asp:Label>
                                        </td>
                                        <td>
                                            <%# FormatCount(BytesRead) %>
                                            /
                                            <%# FormatCount(BytesTotal) %>
                                            <%# CountUnits %>
                                            (
                                            <%# String.Format("{0:0%}", FractionComplete) %>
                                            )
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label1" runat="server" Text="Tốc độ đường truyền"></asp:Label>
                                        </td>
                                        <td>
                                            <%# FormatRate(BytesPerSec) %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label2" runat="server" Text="Thời gian còn lại"></asp:Label>
                                        </td>
                                        <td>
                                            <%# FormatTimeSpan(TimeRemaining) %>
                                        </td>
                                    </tr>
                                </table>
                            </Upload:DetailsSpan>
                            <Upload:DetailsSpan ID="chunkedInProgress" runat="server" WhenStatus="ChunkedInProgress"
                                Style="font-weight: normal; white-space: nowrap;">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label3" runat="server" Text="Tiến trình"></asp:Label>
                                        </td>
                                        <td>
                                            <%# FormatCount(BytesRead) %>
                                            <%# CountUnits %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label4" runat="server" Text="Tốc độ đường truyền"></asp:Label>
                                        </td>
                                        <td>
                                            <%# FormatRate(BytesPerSec) %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label5" runat="server" Text="Thời gian còn lại"></asp:Label>
                                        </td>
                                        <td>
                                            <%# FormatTimeSpan(TimeElapsed) %>
                                        </td>
                                    </tr>
                                </table>
                            </Upload:DetailsSpan>
                            <Upload:DetailsSpan ID="completed" runat="server" WhenStatus="Completed">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label6" runat="server" Text="Hoàn thành"></asp:Label>
                                        </td>
                                        <td>
                                            <%# FormatCount(BytesRead) %>
                                            <%# CountUnits %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label7" runat="server" Text="Tốc độ trung bình"></asp:Label>
                                        </td>
                                        <td>
                                            <%# FormatRate(BytesPerSec) %>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label8" runat="server" Text="Tổng thời gian"></asp:Label>
                                        </td>
                                        <td>
                                            <%# FormatTimeSpan(TimeElapsed) %>
                                        </td>
                                    </tr>
                                </table>
                            </Upload:DetailsSpan>
                            <Upload:DetailsSpan ID="cancelled" runat="server" WhenStatus="Cancelled">
                                Hủy !!!
                            </Upload:DetailsSpan>
                            <Upload:DetailsSpan ID="rejected" runat="server" WhenStatus="Rejected">
                                Rejected:
                                <%# Rejection != null ? Rejection.Message : "" %>
                            </Upload:DetailsSpan>
                            <Upload:DetailsSpan ID="error" runat="server" WhenStatus="Failed">
                                Lỗi:
                                <%# Failure != null ? Failure.Message : "" %>
                            </Upload:DetailsSpan>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
